<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <title>主页</title>
    <style>
        body {
            margin: 0;
            font-family: Arial, sans-serif;
            display: flex;
            min-height: 100vh;
        }
        .sidebar {
            width: 200px;
            background-color: #f4f4f4;
            padding: 20px;
            box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        }
        .sidebar a {
            display: block;
            padding: 10px;
            color: #333;
            text-decoration: none;
            border-radius: 4px;
            margin-bottom: 10px;
        }
        .sidebar a:hover {
            background-color: #007bff;
            color: white;
        }
        .content {
            flex: 1;
            padding: 20px;
        }
        .welcome-message {
            text-align: center;
            margin-top: 50px;
        }
    </style>
</head>
<body>
    <!-- 左侧导航栏 -->
    <div class="sidebar">
        <a href="/books/booklist" target="contentFrame">书籍管理</a>
        <a href="/user/profile" target="contentFrame">用户信息</a>
        <a href="/login.jsp">退出登录</a>
    </div>
<%--    <h1>欢迎你：</h1>${sessionScope.get("user")}--%>
    <!-- 右侧内容区域 -->
    <div class="content">
<%--        <h1>欢迎你：</h1>${sessionScope.get("user")}--%>

<%--        <c:if test="${not empty sessionScope.user}">--%>
            <iframe name="contentFrame" src="" style="width: 100%; height: 100%; border: none;"></iframe>
<%--        </c:if>--%>
    </div>
</body>
</html>
